package org.sy.lab.Java7并发编程实战.一线程管理.十一线程组中不可控异常的处理;

public class MyThreadGroup extends ThreadGroup {
	public MyThreadGroup(String name) {
		super(name);
	}
	@Override
	public void uncaughtException(Thread t, Throwable e) {
		System.out.printf("The thread %s has thown an Exception \n", t.getId());
		e.printStackTrace();
		System.out.printf("Termination the rest of the Threads\n");
		interrupt();
	}
}
